#include <stdio.h>

int main(void)
{
	int a, b, *p1 = &a, *p2 = &b, *p;

	printf("Input two integers: ");
	scanf("%d%d", p1, p2);
	if (a < b)
	{
		p = p1;
		p1 = p2;
		p2 = p;
	}
	printf("a = %d, b = %d\n", a, b);
	printf("*p1 = %d, *p2 = %d\n", *p1, *p2);

	return 0;

}